package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseVO;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 二维码
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【二维码】详情展示对象")
@Data
public class QRCodeVO extends BaseVO {

    private static final long serialVersionUID = -616554044095525384L;

    @ApiModelProperty(notes = "公司id")
    @NotNull(message = "公司id不能为空")
    private String companyId;

    @ApiModelProperty(notes = "二维码地址")
    private String qrCodeUrl;

    @ApiModelProperty(notes = "员工状态")
    @NotNull(message = "员工状态不能为空")
    private Integer status;

    @ApiModelProperty(notes = "员工性质")
    private Integer postType;

    @ApiModelProperty(notes = "有效天数")
    private Integer validDays;

    @ApiModelProperty(notes = "过期时间")
    private Date expireDate;

    @ApiModelProperty(notes = "审批流程id")
    private String flowId;

    @ApiModelProperty(notes = "缓存key")
    private String redisKey;

    @ApiModelProperty(notes = "租户id")
    private String siteId;

    @ApiModelProperty(notes = "类型")
    private Integer type;

    @ApiModelProperty(notes = "生成二维码的用户id")
    private String userId;

    @ApiModelProperty(notes = "渠道id")
    private String channelId;

    @ApiModelProperty(notes = "操作人生成二维码的用户id")
    private String operationUserId;

}
